﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Shell.Interop;


namespace CoryCissellMikeParks.Parkware_AutoShelve
{
    public class ActivityLog
    {
        private static IVsActivityLog _log;

        public static IVsActivityLog log
        {
            get
            {
                return _log;
            }
            set
            {
                _log = value;
            }
        }

        public static void LogError(string message, string stackTrace)
        {
            if (log == null) return;

            int hr = log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_INFORMATION,
                "CoryCissellMikeParks.Parkware_AutoShelve.Parkware_AutoShelvePackage",
                string.Format(CultureInfo.CurrentCulture,
                "Message: {0} Stack Trace: {1}", message, stackTrace));

        }


    }
}